<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/head.jsp" %>

<div class="right">
       <div class="location">
           <strong>你现在所在的位置是:</strong>
           <span>订单管理页面</span>
       </div>
       <div class="search">
       <form>
			<input name="method" value="query" class="input-text" type="hidden">
			<span>商品名称：</span>
			<input name="queryProductName"  id="queryProductName" type="text" >
			 
			<span>供应商：</span>
			<select name="queryProviderId" id="queryProviderId">
				   <option value="0">--请选择--</option>
       		</select>
			<span>是否付款：</span>
			<select name="queryIsPayment" id="queryIsPayment">
				<option value="0">--请选择--</option>
				<option value="2">--已支付--</option>
				<option value="1">--未支付--</option>
       		</select>
			
			 <input	value="查 询" type="button" onclick="getBillList(1,document.getElementById('queryProviderId').value,document.getElementById('queryIsPayment').value,document.getElementById('queryProductName').value)" id="searchbutton">
			 <a href="/statics/jsp/bill/billadd.jsp">添加订单</a>
		</form>
       </div>
       <!--账单表格 样式和供应商公用-->
      <table class="providerTable" cellpadding="0" cellspacing="0">
		  <thead>
		  <tr class="firstTr">
              <th width="10%">订单编码</th>
              <th width="20%">商品名称</th>
              <th width="10%">供应商</th>
              <th width="10%">订单金额</th>
              <th width="10%">是否付款</th>
              <th width="10%">创建时间</th>
              <th width="30%">操作</th>
          </tr>
		  </thead>
		  <tbody id="billList">

		  </tbody>
<%--		  <td>--%>
<%--					<span><a class="viewBill" href="javascript:;" billid=${bill.id } billcc=${bill.billCode }><img src="${pageContext.request.contextPath }/WEB-INF/front/images/read.png" alt="查看" title="查看"/></a></span>--%>
<%--					<span><a class="modifyBill" href="javascript:;" billid=${bill.id } billcc=${bill.billCode }><img src="${pageContext.request.contextPath }/WEB-INF/front/images/xiugai.png" alt="修改" title="修改"/></a></span>--%>
<%--					<span><a class="deleteBill" href="javascript:;" billid=${bill.id } billcc=${bill.billCode }><img src="${pageContext.request.contextPath }/WEB-INF/front/images/schu.png" alt="删除" title="删除"/></a></span>--%>
<%--					</td>--%>

      </table>
	<div class="page-bar">
		<ul class="page-num-ul clearfix">
			<li>共<span id="total"></span>条记录&nbsp;&nbsp; 当前<span id="currentPage">1</span>页/<span id="totalPage">10</span>页</li>
			<a href="javascript:getBillList(1,document.getElementById('queryProviderId').value,document.getElementById('queryIsPayment').value,document.getElementById('queryProductName').value);">首页</a>
			<a href="javascript:getBillList(document.getElementById('currentPage').innerHTML-1,document.getElementById('queryProviderId').value,document.getElementById('queryIsPayment').value,document.getElementById('queryProductName').value);">上一页</a>
			<a href="javascript:getBillList(Number(document.getElementById('currentPage').innerHTML)+1,document.getElementById('queryProviderId').value,document.getElementById('queryIsPayment').value,document.getElementById('queryProductName').value);">下一页</a>
			<a href="javascript:getBillList(document.getElementById('totalPage').innerHTML,document.getElementById('queryProviderId').value,document.getElementById('queryIsPayment').value,document.getElementById('queryProductName').value);">最后一页</a>
		</ul>
		<span class="page-go-form"><label>跳转至</label>
	     <input type="text" name="inputPage" id="inputPage" class="page-key"/>页
	     <button type="button" class="page-btn"
				 onClick="getBillList(document.getElementById('inputPage').value)">GO</button>
	</span>
	</div>
  </div>
</section>

<!--点击删除按钮后弹出的页面-->


<%@include file="../common/foot.jsp" %>
<script type="text/javascript" src="statics/js/billlist.js"></script>
